package com.leonse.stock.controller;

import com.leonse.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leonse
 * @date 2023/12/28 20:12
 **/
@RestController
@RequestMapping("/stock")
public class StockController {

    @Autowired
    private StockService stockService;

    @RequestMapping("/deduction")
    public String deduction() {
        stockService.deduction(1);
        return "success";
    }

}
